﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="Admin.CheckupForm.Manage" validateRequest="false" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
     <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
     <META HTTP-EQUIV="Expires" CONTENT="0"> 
    <link href="/Themes/Default/Css/Style.css" rel="stylesheet" type="text/css" />
    <script src="/Components/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Jscript/CheckBox.js" type="text/javascript"></script>
    <title>签审单</title>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 900px;" cellpadding="2" cellspacing="1" border="0">
        <tr>
            <td>
                <table cellspacing="0" cellpadding="0" width="100%" border="1" bordercolordark="white"
                    bordercolorlight="#b7c9e9" style="padding-left: 3px">
                    <tr>
                        <td height="25" align="right" width="120px">
                            项目名称 ：
                        </td>
                        <td height="25" align="left" width="780px">
                            <asp:Label ID="lblProjectName" runat="server"></asp:Label>
                        </td>
                        <td height="25" align="right" width="120px">
                            项目编号：
                        </td>
                        <td height="25" align="left" width="330px">
                            <asp:Label ID="lblProjectNumber" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right" width="120px">
                            签审类型 ：
                        </td>
                        <td height="25" align="left" width="330px">
                            <asp:DropDownList ID="ddlType" runat="server">
                                <asp:ListItem Value="0">专业审核单</asp:ListItem>
                                <asp:ListItem Value="1">院审核单</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td height="25" align="right">
                            签审编号 ：
                        </td>
                        <td height="25" align="left">
                            <asp:Label ID="lblNumber" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right">
                            签审内容 ：
                        </td>
                        <td height="25" align="left" colspan="3">
                            <asp:TextBox ID="txtContent" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="tdbg" align="center" valign="bottom">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" class="inputbutton"
                    onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'">
                </asp:Button>
                <input type="button" value="关闭" class="inputbutton" onmouseover="this.className='inputbutton_hover'"
                    onmouseout="this.className='inputbutton'" onclick="javascript:window.parent.$('#Div1').dialog('close');" />
            </td>
        </tr>
    </table>
    <table style="width: 100%;" cellpadding="2" cellspacing="0" class="workspacesearch">
        <tr>
            <td class="dt" align="center">
                查询条件
            </td>
            <td style="width: 80px" align="center" class="tdbg">
                <b>签审单编号：</b>
            </td>
            <td class="tdbg">
                <asp:TextBox ID="txtCheckupFormNumber" runat="server"></asp:TextBox>
            </td>
            <td style="width: 80px" align="center" class="tdbg">
                <b>签审单类型：</b>
            </td>
            <td class="tdbg">
                <asp:DropDownList ID="ddlSearchType" runat="server">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem Value="1">专业审核单</asp:ListItem>
                    <asp:ListItem Value="2">院审核单</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="tdbg">
                <asp:ImageButton ID="imgBtnSearch" ImageUrl="/Themes/TheOne/images/btn_search.gif"
                    runat="server" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="formList">
        <tr>
            <td>
                <!--Search end-->
                <table height="220px" border="0" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td valign="top" height="200px">
                            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" CellPadding="4"
                                OnPageIndexChanging="gridView_PageIndexChanging" DataKeyNames="CheckupFormId"
                                OnRowDataBound="gridView_RowDataBound" AutoGenerateColumns="False" RowStyle-HorizontalAlign="Center"
                                OnRowCreated="gridView_OnRowCreated" ForeColor="#333333" OnRowDeleting="gridView_RowDeleting">
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <Columns>
                                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择" Visible="false">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="checkboxname" name="checkboxname" onclick="javascript:SingleCheckJs();"
                                                runat="server" />
                                        </ItemTemplate>
                                        <ControlStyle Width="30px"></ControlStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="签审编号" SortExpression="CheckupNumber">
                                        <ItemTemplate>
                                            <a href='/CheckupForm/Manage.aspx?CheckupFormId=<%#Eval("CheckupFormId") %>&&CheckType=<%#Eval("CheckupType") %>'>
                                                <%#Eval("CheckupNumber")%></a>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="签审类型" SortExpression="CheckupType">
                                        <ItemTemplate>
                                            <a href='/CheckupForm/Manage.aspx?CheckupFormId=<%#Eval("CheckupFormId") %>'>
                                                <%#Eval("CheckupType").ToString() == "0" ? "专业审核单" : "院审核单"%></a>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="CheckupDate" HeaderText="签审日期" SortExpression="CheckupDate"
                                        ItemStyle-HorizontalAlign="Center" DataFormatString="{0:yyyy-MM-dd}">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="CheckupContent" HeaderText="签审内容" SortExpression="CheckupContent"
                                        ItemStyle-HorizontalAlign="Center">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="打印">
                                        <ItemTemplate>
                                            <a href='<%#Eval("CheckupType").ToString()=="0"?"PrintProfessional.aspx?CheckupFormId="+Eval("CheckupFormId"):"PrintXY.aspx?CheckupFormId="+Eval("CheckupFormId")%>'
                                                target="_blank">打印</a>
                                        </ItemTemplate>
                                        <ControlStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField ControlStyle-Width="50" HeaderText="删除">
                                        <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" BindData='<%#Eval("CreateUserId") %>' CausesValidation="False" CommandName="Delete"
                                         Text="删除"></asp:LinkButton>
                                        </ItemTemplate>
                                        <ControlStyle Width="50px"></ControlStyle>
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#598cbf" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle HorizontalAlign="Center" BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass=""
                                FirstPageText="首页" HorizontalAlign="Right" LastPageText="末页" NextPageText="下一页"
                                PageIndexBoxType="TextBox" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Always"
                                ShowPageIndexBox="Always" OnPageChanged="AspNetPager1_PageChanged" PageSize="6">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
